<?php

namespace JLPay\Models\Merchant;

use JLPay\Models\BaseRequest;

/**
 * 商户申请单作废请求
 */
class MerchantOrderCancelRequest extends BaseRequest
{
    /**
     * API接口路径
     */
    public const API_URL = '/open/merch/access/incoming/cancel';

    protected ?string $applyId = null;
    protected ?string $reason = null;

    /**
     * 设置申请单号
     *
     * @param string $applyId
     * @return self
     */
    public function setApplyId(string $applyId): self
    {
        $this->applyId = $applyId;
        return $this;
    }

    /**
     * 设置作废原因
     *
     * @param string $reason
     * @return self
     */
    public function setReason(string $reason): self
    {
        $this->reason = $reason;
        return $this;
    }

    /**
     * 获取申请单号
     *
     * @return string|null
     */
    public function getApplyId(): ?string
    {
        return $this->applyId;
    }

    /**
     * 获取作废原因
     *
     * @return string|null
     */
    public function getReason(): ?string
    {
        return $this->reason;
    }
} 